Optimal. Leaf size=46 \[ -\frac{\cot ^3(e+f x)}{3 a^2 c^2 f}+\frac{\cot (e+f x)}{a^2 c^2 f}+\frac{x}{a^2 c^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0713255, antiderivative size = 46, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 26, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.115, Rules used = {3904, 3473, 8} \[ -\frac{\cot ^3(e+f x)}{3 a^2 c^2 f}+\frac{\cot (e+f x)}{a^2 c^2 f}+\frac{x}{a^2 c^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3904
Rule 3473
Rule 8
Rubi steps
\begin{align*} \int \frac{1}{(a+a \sec (e+f x))^2 (c-c \sec (e+f x))^2} \, dx &=\frac{\int \cot ^4(e+f x) \, dx}{a^2 c^2}\\ &=-\frac{\cot ^3(e+f x)}{3 a^2 c^2 f}-\frac{\int \cot ^2(e+f x) \, dx}{a^2 c^2}\\ &=\frac{\cot (e+f x)}{a^2 c^2 f}-\frac{\cot ^3(e+f x)}{3 a^2 c^2 f}+\frac{\int 1 \, dx}{a^2 c^2}\\ &=\frac{x}{a^2 c^2}+\frac{\cot (e+f x)}{a^2 c^2 f}-\frac{\cot ^3(e+f x)}{3 a^2 c^2 f}\\ \end{align*}
Mathematica [C] time = 0.0504444, size = 39, normalized size = 0.85 \[ -\frac{\cot ^3(e+f x) \text{Hypergeometric2F1}\left (-\frac{3}{2},1,-\frac{1}{2},-\tan ^2(e+f x)\right )}{3 a^2 c^2 f} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 180., size = 0, normalized size = 0. \begin{align*} \int{\frac{1}{ \left ( a+a\sec \left ( fx+e \right ) \right ) ^{2} \left ( c-c\sec \left ( fx+e \right ) \right ) ^{2}}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.52462, size = 62, normalized size = 1.35 \begin{align*} \frac{\frac{3 \,{\left (f x + e\right )}}{a^{2} c^{2}} + \frac{3 \, \tan \left (f x + e\right )^{2} - 1}{a^{2} c^{2} \tan \left (f x + e\right )^{3}}}{3 \, f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.05791, size = 188, normalized size = 4.09 \begin{align*} \frac{4 \, \cos \left (f x + e\right )^{3} + 3 \,{\left (f x \cos \left (f x + e\right )^{2} - f x\right )} \sin \left (f x + e\right ) - 3 \, \cos \left (f x + e\right )}{3 \,{\left (a^{2} c^{2} f \cos \left (f x + e\right )^{2} - a^{2} c^{2} f\right )} \sin \left (f x + e\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \frac{\int \frac{1}{\sec ^{4}{\left (e + f x \right )} - 2 \sec ^{2}{\left (e + f x \right )} + 1}\, dx}{a^{2} c^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.41077, size = 135, normalized size = 2.93 \begin{align*} \frac{\frac{24 \,{\left (f x + e\right )}}{a^{2} c^{2}} + \frac{15 \, \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{2} - 1}{a^{2} c^{2} \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{3}} + \frac{a^{4} c^{4} \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{3} - 15 \, a^{4} c^{4} \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )}{a^{6} c^{6}}}{24 \, f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]